package com.kzj.common.constant;

import java.math.RoundingMode;

public class GlobalConstant {
    public static final String CHARSET_UTF_8="utf-8";


    public static final Integer CREATE_USER_DEFAULT_GRANGE=6;
    public static final Integer CREATE_USER_DEFAULT_NAME_LEN=8;
    public static final String USER_PHONE_OR_PASSWORD_ERROR="用户名或者密码错误";
    public static final String GRADE_FAULTY="年级过低，不可生成乘除法";
    public static final String GENERATE_CONDITION_FAULTY="算式生成条件不合规";
    public static final String EQUATION_FIND_UNKNOWN_CHAR="算式出现非法字符";
    public static final String EQUATION_FAULTY="算式不合规";
    public static final String USER_LOGIN_SUCCESS="用户登录成功";
    public static final String USER_REGISTER_SUCCESS="用户注册成功";

    public static final String EXERCISES_TYPE_ERROR="习题的类型异常";
    public static final String GRADE_ERROR="年级异常";
    public static final String NUMBER_ERROR="习题数量异常";
    public static final String WAIT_A_MOMENT="答案生成中,请稍等再试。。。";
    public static final String PHONE_FORMAT_ERROR="手机号格式错误";
    public static final String USER_NOT_EXIST="用户不存在";
    public static final String EXERCISES_TYPE_ADD="加法";
    public static final String EXERCISES_TYPE_SUB="减法";
    public static final String EXERCISES_TYPE_MIX="混合";
    public static final String EXERCISES_TYPE_MUL="乘法";
    public static final String EXERCISES_TYPE_DIV="除法";
    public static final String EXERCISES_TYPE_ERROR_SET="错题集";

    public static final String EXERCISES_TYPE_LIMIT_ADD="限时加法";
    public static final String EXERCISES_TYPE_LIMIT_SUB="限时减法";
    public static final String EXERCISES_TYPE_LIMIT_MIX="限时混合";
    public static final String EXERCISES_TYPE_LIMIT_MUL="限时乘法";
    public static final String EXERCISES_TYPE_LIMIT_DIV="限时除法";
    public static final String SYMBOL_ADD="+";
    public static final String SYMBOL_SUB="-";
    public static final String SYMBOL_MUL="×";
    public static final String SYMBOL_DIV="÷";
    public static final String EXERCISES_TYPE_UNKNOWN="未知";
    public static final String EXCEL_TEMPLATE_PATH="template/excelTemplate.xlsx";
    public static final Integer EXCEL_CREATE_EQUATION_UP=100;
    public static final String EXCEL_CREATE_EQUATION_OVER_UP="文档生成算式数量超出题目上线";
    public static final String EXERCISES_NUMBER_ERROR="练习习题数量不能小于等于0";
    public static final String CODE_SEND_SUCCESS="短信验证码发送成功";
    public static final String CODE_NOT_NULL="验证码不能为空";
    public static final String LOGIN_ERROR="登录失败";
    public static final String CODE_ERROR="验证码错误";
    public static final String CODE_EXPIRATION="验证码已过期";
    public static final Integer GRADE_1=1;
    public static final Integer GRADE_2=2;
    public static final Integer GRADE_3=3;
    public static final Integer GRADE_4=4;
    public static final Integer GRADE_5=5;
    public static final Integer GRADE_6=6;
    public static final Long CODE_EXPIRATION_TIME=5L;
    public static final RoundingMode BIG_DECIMAL_ROUNDING_MODE = RoundingMode.HALF_UP;
    public static final int BIG_DECIMAL_SCALE=2;
    public static final String PHONE_REGEX = "^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\\d{8}$";
}
